xen: Set VGCF_online flag appropriately for getvcpucontext.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 12 Mar 2007 14:11:07 +0000 (14:11 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 12 Mar 2007 14:11:07 +0000 (14:11 +0000)
Signed-off-by: Keir Fraser <keir@xensource.com>
xen/arch/x86/domctl.c

index 00bb202d57de91428f04a0bc8efd6796e5dd8dc6..503b0000c7b22773ae31e08bcf24d80ed77da117 100644 (file)
@@ -450,6 +450,8 @@ void arch_get_info_guest(struct vcpu *v, vcpu_guest_context_u c)
     c(flags &= ~(VGCF_i387_valid|VGCF_in_kernel));
     if ( test_bit(_VCPUF_fpu_initialised, &v->vcpu_flags) )
         c(flags |= VGCF_i387_valid);
+    if ( !test_bit(_VCPUF_down, &v->vcpu_flags) )
+        c(flags |= VGCF_online);
 
     if ( is_hvm_vcpu(v) )
     {